package com.atguigu.gulimall.seckill.service;

import com.atguigu.gulimall.seckill.to.SeckillSkuRedisTo;

import java.util.List;

public interface SeckillService {
    void uploadSeckillSkuLatest3Days();

    List<SeckillSkuRedisTo> getCurrentSeckillSkus();

    SeckillSkuRedisTo getSkuSeckillInfo(Long skuId);

    /**
     * 开始秒杀
     * @param killId
     * @param key 随机码
     * @param num 数量
     * @return
     */
    String kill(String killId, String key, Integer num);
}
